//
//  movieTableViewCell.m
//  周末豆瓣
//
//  Created by dllo on 15/12/26.
//  Copyright © 2015年 lanou. All rights reserved.
//

#import "movieTableViewCell.h"

@implementation movieTableViewCell

- (void)dealloc {
    [_imagView release];
    [_imagView2 release];
    [_titleLabel release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createCell];
    }
    return self;
}



- (void)createCell {
    
    self.imagView = [[UIImageView alloc] init];
    [self.contentView addSubview:self.imagView];
    [_imagView release];
    
    self.imagView2 = [[UIImageView alloc] init];
    [self.imagView addSubview:self.imagView2];
    [_imagView2 release];
    
    self.titleLabel = [[UILabel alloc] init];
    [self.imagView addSubview:self.titleLabel];
    [_titleLabel release];
    
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
    _imagView.frame = CGRectMake(10, 20, 355, 180);
    _imagView.layer.cornerRadius = 10;
    _imagView.layer.masksToBounds = YES;
    _imagView.backgroundColor = [UIColor clearColor];
    
    _imagView2.frame = CGRectMake(10, 10, 100, 160);
    _imagView2.backgroundColor = [UIColor clearColor];
    
    _titleLabel.frame = CGRectMake(130, 50, 200, 50);
    _titleLabel.backgroundColor = [UIColor clearColor];
    
}







- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
